package com.ruoyi.project.dataviewSystem.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 实时，暂忽，历史告警对象 v_warning
 * 
 * @author wangshuo
 * @date 2021-02-08
 */
public class VWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 站点名称 */
    @Excel(name = "站点名称")
    private String stationname;

    /** 告警类型:0指标超标;;2开关量告警;3,离线 */
    @Excel(name = "告警类型:0指标超标;;2开关量告警;3,离线")
    private String faulttype;

    /** 告警状态:0、未处理;1、处理完成 */
    @Excel(name = "告警状态:0、未处理;1、处理完成;2、已忽略")
    private String warnState;

    /** 告警生成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "告警生成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String createdate;

    /** 告警优先级:0低;1中;2高;3紧急;4立刻 */
    @Excel(name = "告警优先级:0低;1中;2高;3紧急;4立刻")
    private String prilevel;

    /** 是否忽略此告警 0不忽略(即正常显示此告警) 1忽略 */
    @Excel(name = "是否忽略此告警 0不忽略(即正常显示此告警) 1忽略")
    private String alert;

    /** 站点唯一标识 */
    @Excel(name = "站点唯一标识")
    private String stationcode;

    /** 处理告警的描述 */
    @Excel(name = "处理告警的描述")
    private String resolvent;

    /** 处理告警的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理告警的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String finishdate;

    /** 生成告警的描述 */
    @Excel(name = "生成告警的描述")
    private String description;

    private List<VWarningPicture> vWarningPictureList;

    public List<VWarningPicture> getvWarningPictureList() {
        return vWarningPictureList;
    }

    public void setvWarningPictureList(List<VWarningPicture> vWarningPictureList) {
        this.vWarningPictureList = vWarningPictureList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStationname(String stationname) 
    {
        this.stationname = stationname;
    }

    public String getStationname() 
    {
        return stationname;
    }
    public void setFaulttype(String faulttype) 
    {
        this.faulttype = faulttype;
    }

    public String getFaulttype() 
    {
        return faulttype;
    }
    public void setWarnState(String warnState) 
    {
        this.warnState = warnState;
    }

    public String getWarnState() 
    {
        return warnState;
    }

    public void setPrilevel(String prilevel) 
    {
        this.prilevel = prilevel;
    }

    public String getPrilevel() 
    {
        return prilevel;
    }
    public void setAlert(String alert) 
    {
        this.alert = alert;
    }

    public String getAlert() 
    {
        return alert;
    }
    public void setStationcode(String stationcode) 
    {
        this.stationcode = stationcode;
    }

    public String getStationcode() 
    {
        return stationcode;
    }
    public void setResolvent(String resolvent) 
    {
        this.resolvent = resolvent;
    }

    public String getResolvent() 
    {
        return resolvent;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getFinishdate() {
        return finishdate;
    }

    public void setFinishdate(String finishdate) {
        this.finishdate = finishdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stationname", getStationname())
            .append("faulttype", getFaulttype())
            .append("warnState", getWarnState())
            .append("createdate", getCreatedate())
            .append("prilevel", getPrilevel())
            .append("alert", getAlert())
            .append("stationcode", getStationcode())
            .append("resolvent", getResolvent())
            .append("finishdate", getFinishdate())
            .append("description", getDescription())
            .toString();
    }
}
